/**
 * Created by Administrator on 2016/8/1.
 */


var BaseDao = require('../../base-dao/BaseDao');


exports.check = function(params,callback) {
    var sql = 'select * from tbl_user where mobile ="'+params.mobile+'" and status =1';
    BaseDao.execQuery(sql,function(err, rows) {
        callback(err, rows);
    });
};

// 登录保存用户信息
exports.login = function(obj,callback) {
    var sql = 'INSERT INTO tbl_user SET ?';
    BaseDao.execQuery(sql,obj, function(err, rows) {
        callback(err, rows);
    });
};